import React from 'react'
import styles from '../index.module.scss'
export default function Group({ groupsData = [], baseURL }) {
    return (
        <div className={styles.groups}>
            <div className={styles.groups_title}>
                <h3>租房小组</h3>
                <span>更多</span>
            </div>
            <div className={styles.groups_main}>
                {
                    groupsData.map(v => <span key={v.id}>
                        <img src={baseURL + v.imgSrc} alt="" loading='lazy' />
                        <h4>{v.title} </h4>
                        <p>{v.desc}</p>
                    </span>)
                }
            </div>
        </div>
    )
}
